{extend name='layout' /}

{block name='title'}
文章搜索 | Sinalma博客
{/block}


{block name='subtitle'}
search
{/block}
{block name="subtitleslug"}index{/block}


{block name='content'}
<script type="text/javascript">
    // ajax 实现无刷新分页
    function showpage(page){
        var url = "__HTP____URL__/index/Index/getSearchArts/pointStr/"+'{$pointStr}'+"/page/"+page;
        var xhr = new XMLHttpRequest();
        xhr.onreadystatechange = function (){
            if(xhr.readyState == 4){
                $('#more-btn').remove();
                loadSuccess();
                // $main_con = document.getElementById('main-container');
                // $main_con.innerHTML = xhr.responseText;
                $('#main-container').append(xhr.responseText);
            }
        }
        xhr.open('get',url,true);
        xhr.send(null);
    }
    $(function(){$("#main-container").empty();
        showpage(1);
    });
    // 监听搜索表单的提交
</script>
{/block}